package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author oxiny
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("d_dist_record")
public class DistRecord extends Model<DistRecord> {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("分销者id")
    private Integer distId;

    @ApiModelProperty("被分销者id")
    private Integer targetId;

    @ApiModelProperty("订单id")
    private Integer orderId;

    @ApiModelProperty("分销者提成(单位:分)")
    private Integer money;

    private Date addTime;

    private String remark;
}
